"use client"
import {useRouter} from "next/navigation";
import React from "react";

export default function Dashboard(){
    const router = useRouter();
    const back = () => {
        router.back()
    }
    return (
        <>
            <div>
                Dashboard
            </div>
            <h2 style={{
                marginTop: "10px",
                display: "flex",
                justifyContent: "center",
                alignItems: "center"
            }}>
                <button style={{
                    backgroundColor: "black",
                    borderRadius: "999px",
                    padding: "15px 20px",
                    border: "1px solid black",
                    cursor: "pointer",
                    color: "white",
                    fontSize: "20px"
                }} onClick={back}>
                    Back Home
                </button>
            </h2>
        </>
    )
}